package com.ymatou.iapi.productmanager.service.old;

import java.util.Map;

import org.json.JSONObject;

import com.ymttest.business.YmatouAutoTestCall;
import com.ymttest.utils.EnvSetup;
import com.ymttest.utils.MapUtil;
import com.ymttest.utils.compare.CallAPI;

public class CheckProductExistsActivityCall  extends YmatouAutoTestCall implements CallAPI{

	private static String opurl ="api/Product/CheckProductExistsActivity";

	public CheckProductExistsActivityCall() {
		super(EnvSetup.getSystemUrl("productmanager"),opurl,"POST","JSON");
	}
	
	public CheckProductExistsActivityCall(String systemUrl) {
		super(systemUrl,opurl,"POST","JSON");
	}
	
	
	public void addDefHeader() {
		client.addHeader("Content-Type", "application/json");
	}

	

	public JSONObject call(int sellerId,String productId){
		return this.callAndGetReturnData(MapUtil.hashMap("UserId",sellerId,"ProductId",productId));
		
	}
	
	
	
	public static void main(String[] args) {
	}

	@Override
	public JSONObject callAndReturn(Map<String, Object> paramMap) {
		return this.callAndGetReturnData(paramMap);
	}

	@Override
	public String getApiName() {
		return "CheckProductExistsActivity";
	}

}